<?php
header("content-type:text/html;charset=utf-8");
require("config.php");												//包含数据库连接文件
?>
<html>
	<head>
	 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>栏目名称</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
	</head>
	<body>
<block name="main">
<div id="page-wrapper" class="gray-bg dashbard-1">
    <include file="Common/nav-header"/> 
    <div class="wrapper wrapper-content">
    <div class="row">
    <div class="col-lg-12">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
			<div class="col-md-1">
			</div>
            <!--表格开始-->
            <form action="manage.php" method="post" name="updateSort" id="updateSort" >
			<div class="col-md-10">
                <input type="hidden" name="page_num" value="{$_GET['p']}"/>
                <div class="table-responsive">
                    <table class="table  table-bordered table-hover">
                        <thead>
                        <tr>
                            <th style="width: 35px;">
                                <input type="checkbox" id="checkAll" class="check-all">
                                <label for="checkAll"></label>
                            </th>
                            <th>ID</th>
                            <th>名称</th>
                            <th>排序</th>
                            <th style="width: 100px">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <foreach name="datalists" item="vo">
                            <tr>
                                <td>
                                    <input class="ids regular-checkbox" type="checkbox"
                                      value="{$vo.id}"name="ids[]" id="check_{$vo.entity_id}">
                                    <label for="check_{$vo.entity_id}"></label>
                                </td>
                                <td> {$vo.id}</td>
                                <td> {$vo.elementary_name}</td>
                                </td>
                                <td> {$vo.sort}</td>
                                <td>
                                    <a href="{:U('add',array('id'=>$vo['id']))}">编辑</a>
                           <a class="confirm" href="delete2.php">删除</a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    <!--分页开始-->
                    <div style="padding-top:15px;float: right; ">
                        <div class="page">{$page}</div>
                    </div>
                    <!--分页结束-->
                </div>
				</div>
            </form>
            <!--表格结束-->
			<div class="col-md-1">
			</div>
        </div>
    </div>
    </div>
    </div>
    </div>
   
</div>
</block>
</body>
</html>